package com.entor.springboot201912.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Student {
    private Integer id;
    private String name;
    private String password;
    private String sex;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private Date createDate;
    private String studentNo;
    private String address;
    private String status;
    private Integer age;
    private Double weight;
    private Double heigth;

    public Student() {
    }

    public Student(String name, String password, String sex, Date birthday, Date createDate, String studentNo, String address, String status, Integer age, Double weight, Double heigth) {
        this.name = name;
        this.password = password;
        this.sex = sex;
        this.birthday = birthday;
        this.createDate = createDate;
        this.studentNo = studentNo;
        this.address = address;
        this.status = status;
        this.age = age;
        this.weight = weight;
        this.heigth = heigth;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public void setStudentNo(String studentNo) {
        this.studentNo = studentNo;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public void setHeigth(Double heigth) {
        this.heigth = heigth;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getPassword() {
        return password;
    }

    public String getSex() {
        return sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public String getStudentNo() {
        return studentNo;
    }

    public String getAddress() {
        return address;
    }

    public String getStatus() {
        return status;
    }

    public Integer getAge() {
        return age;
    }

    public Double getWeight() {
        return weight;
    }

    public Double getHeigth() {
        return heigth;
    }
}
